package com.ruoyi.religion.sdk;

import com.ruoyi.religion.lib.NetDEVSDKLib;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class NetDemo{

    @Autowired
    MyAsync myAsync;

    public static NetDEVSDKLib netdevsdk = NetDEVSDKLib.NETDEVSDK_INSTANCE;

    static {
        //初始化
        netdevsdk.NETDEV_Init();
    }

    @ResponseBody
    @RequestMapping("/getNvr")
    public String getNvr() {

        myAsync.async();

        return "结束";
    }



}
